import os

path = r'C:\Users\-\Desktop\后处理\A+医学百科'
fileList = os.listdir(path)
print(fileList)

f_ = open('result.txt', mode='a', encoding='utf-8')
for name in fileList:
    with open(os.path.join(r'C:\Users\-\Desktop\后处理\A+医学百科', name), mode='r', encoding='utf-8') as f:
        content = f.read()
        f_.write(content + '\n')